import 'package:xvideos/hj_model/mine/excharge/recharge_type_list_model.dart';

import 'dc_model.dart';

/// 可供充值的金币列表
class RechargeListModel {
  DCModel? daichong;
  List<RechargeTypeModel>? list;

  RechargeListModel();

  RechargeListModel.fromJson(Map<String, dynamic>? json) {
    json ??= {};
    daichong = DCModel.fromJson(json['daichong']);
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((it) {
        RechargeTypeModel model = RechargeTypeModel.fromJson(it);
        model.daichong = daichong;
        list?.add(model);
      });
    }
  }
  Map toJson() => {
        "daichong": daichong,
        "list": list,
      };
}
